home *** CD-ROM | disk | FTP | other *** search
-
-
-
- ccccllllGGGGeeeettttNNNNeeeexxxxttttIIIImmmmaaaaggggeeeeIIIInnnnffffoooo((((3333ddddmmmm)))) ccccllllGGGGeeeettttNNNNeeeexxxxttttIIIImmmmaaaaggggeeeeIIIInnnnffffoooo((((3333ddddmmmm))))
-
-
-
- NNNNAAAAMMMMEEEE
- clGetNextImageInfo - Get information about a compressed image stream
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- ####iiiinnnncccclllluuuuddddeeee <<<<ddddmmmmeeeeddddiiiiaaaa////ccccllll....hhhh>>>>
-
- iiiinnnntttt ccccllllGGGGeeeettttNNNNeeeexxxxttttIIIImmmmaaaaggggeeeeIIIInnnnffffoooo((((CCCCLLLLhhhhaaaannnnddddlllleeee hhhhaaaannnnddddlllleeee,,,,
- CCCCLLLLiiiimmmmaaaaggggeeeeIIIInnnnffffoooo ****iiiinnnnffffoooo,,,, iiiinnnntttt ssssiiiizzzzeeeeOOOOffffIIIImmmmaaaaggggeeeeIIIInnnnffffoooo))))
-
-
- AAAARRRRGGGGUUUUMMMMEEEENNNNTTTTSSSS
- _h_a_n_d_l_e An open handle that is actively compressing or decompressing.
-
- _i_n_f_o A pointer where a CLimageInfo structure is to be placed.
-
- _s_i_z_e_O_f_I_m_a_g_e_I_n_f_o
- The size of the CLimageInfo structure in bytes.
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- This call is used to obtain information about images (fields or frames)
- as they are compressed or decompressed. The information includes size,
- time, and a relative image index value.
-
- Before using ccccllllGGGGeeeettttNNNNeeeexxxxttttIIIImmmmaaaaggggeeeeIIIInnnnffffoooo it must be enabled by setting the
- CL_ENABLE_IMAGEINFO parameter to TRUE via the ccccllllSSSSeeeettttPPPPaaaarrrraaaammmm function. This
- must be done before calling ccccllllCCCCoooommmmpppprrrreeeessssssss or ccccllllDDDDeeeeccccoooommmmpppprrrreeeessssssss.
-
- The CLimageInfo structure is defined in <<<<ddddmmmmeeeeddddiiiiaaaa////ccccllll....hhhh>>>> and has the
- following fields:
-
- typedef struct {
- unsigned size; /* size of compressed image in bytes */
- unsigned long long ustime; /* time in nanoseconds */
- unsigned imagecount; /* absolute media stream counter */
- unsigned status; /* additional status information */
- } CLimageInfo;
-
-
- During video compression from an external device, the imagecount field is
- initialized to one when the first field is received by the compressor
- after a call to ccccllllCCCCoooommmmpppprrrreeeessssssss. It counts forward whenever a new field
- arrives. If the compression data buffer fills up, then a field will be
- dropped, but the imagecount will continue to increase. An application
- can thus detect a dropped field by noticing a jump in the imagecount
- field of more than one. The _u_s_t_i_m_e indicates the time the uncompressed
- field entered the compressor.
-
- During video decompression to an external device, the imagecount field
- reflects the count of fields sent by the application to the decompressor.
- The _u_s_t_i_m_e indicates the time that field left the decompressor. In
- certain situations, fields are repeated on output in which case the
- imagecount will remain the same, but the ustime will increase. In the
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-
-
-
- ccccllllGGGGeeeettttNNNNeeeexxxxttttIIIImmmmaaaaggggeeeeIIIInnnnffffoooo((((3333ddddmmmm)))) ccccllllGGGGeeeettttNNNNeeeexxxxttttIIIImmmmaaaaggggeeeeIIIInnnnffffoooo((((3333ddddmmmm))))
-
-
-
- case of Cosmo decompression, there is a 1 frame delay through
- Galileo/IndyVideo before the field actually leaves the machine.
-
-
- RRRREEEETTTTUUUURRRRNNNN VVVVAAAALLLLUUUUEEEESSSS
- ccccllllGGGGeeeettttNNNNeeeexxxxttttIIIImmmmaaaaggggeeeeIIIInnnnffffoooo returns SUCCESS when an image is available or
- CL_NEXT_NOT_AVAILABLE when there is not. Other errors are defined in
- <<<<ddddmmmmeeeeddddiiiiaaaa////ccccllll....hhhh>>>>.
-
-
- BBBBUUUUGGGGSSSS
- There are two mechanisms for monitoring data flow through a
- compressor/decompressor. The routines ccccllllQQQQuuuueeeerrrryyyyFFFFrrrreeeeeeee and ccccllllQQQQuuuueeeerrrryyyyVVVVaaaalllliiiidddd are
- implemented for all schemes. The ccccllllGGGGeeeettttNNNNeeeexxxxttttIIIImmmmaaaaggggeeeeIIIInnnnffffoooo mechanism is
- implemented only for CL_JPEG_COSMO.
-
- The CL_JPEG_COSMO compressor will not function properly unless the
- application enables ccccllllGGGGeeeettttNNNNeeeexxxxttttIIIImmmmaaaaggggeeeeIIIInnnnffffoooo and reads a CLimageInfo structure
- corresponding to each compressed image prior to reading the compressed
- image data from the _d_a_t_a_B_u_f_f_e_r argument to ccccllllCCCCoooommmmpppprrrreeeessssssss. If the
- application enables ccccllllGGGGeeeettttNNNNeeeexxxxttttIIIImmmmaaaaggggeeeeIIIInnnnffffoooo and fails to subsequently call the
- routine, JPEG data will not be delivered to the application.
-
- An application is not required to enable and read CLimageInfo structures
- when using the CL_JPEG_COSMO decompressor.
-
-
- CCCCAAAAVVVVEEEEAAAATTTTSSSS
- ccccllllGGGGeeeettttNNNNeeeexxxxttttIIIImmmmaaaaggggeeeeIIIInnnnffffoooo will block until the first valid decompressed field
- has exited the CL_JPEG_COSMO decompressor. This is the only condition
- under which the call blocks.
-
- The _u_s_t_i_m_e field returns a meaningful value only when compressing or
- decompressing to an external device.
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- CLintro(3dm), clSetParam(3dm), clCompress(3dm), clDecompress(3dm),
- clQueryFree(3dm), clQueryValid(3dm), dmGetUST(3dm)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 2222
-
-
-
-